package com.zhuchaooasystem.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author yinsi
 */

public class RecordEntity {


    /**
     * result : {"successful":[{"theme":"完美","remark":"德玛西亚","serviceTime":"2016年08月15日11: 27","Count":1,"SumPageIndex":7,"itemId":74}]}
     */

    private ResultBean result;

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        private List<SuccessfulBean> successful;
        private String Error;

        public String getError() {
            return Error;
        }

        public void setError(String error) {
            Error = error;
        }

        public List<SuccessfulBean> getSuccessful() {
            return successful;
        }

        public void setSuccessful(List<SuccessfulBean> successful) {
            this.successful = successful;
        }

        public static class SuccessfulBean implements Parcelable {
            /**
             * theme : 完美
             * remark : 德玛西亚
             * serviceTime : 2016年08月15日11: 27
             * Count : 1.0
             * SumPageIndex : 7.0
             * itemId : 74
             */

            private String theme;
            private String remark;
            private String serviceTime;
            private int Count;
            private int SumPageIndex;
            private int itemId;

            public String getTheme() {
                return theme;
            }

            public void setTheme(String theme) {
                this.theme = theme;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            public String getServiceTime() {
                return serviceTime;
            }

            public void setServiceTime(String serviceTime) {
                this.serviceTime = serviceTime;
            }

            public int getCount() {
                return Count;
            }

            public void setCount(int Count) {
                this.Count = Count;
            }

            public int getSumPageIndex() {
                return SumPageIndex;
            }

            public void setSumPageIndex(int SumPageIndex) {
                this.SumPageIndex = SumPageIndex;
            }

            public int getItemId() {
                return itemId;
            }

            public void setItemId(int itemId) {
                this.itemId = itemId;
            }


            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.theme);
                dest.writeString(this.remark);
                dest.writeString(this.serviceTime);
                dest.writeInt(this.Count);
                dest.writeInt(this.SumPageIndex);
                dest.writeInt(this.itemId);
            }

            public SuccessfulBean() {
            }

            protected SuccessfulBean(Parcel in) {
                this.theme = in.readString();
                this.remark = in.readString();
                this.serviceTime = in.readString();
                this.Count = in.readInt();
                this.SumPageIndex = in.readInt();
                this.itemId = in.readInt();
            }

            public static final Creator<SuccessfulBean> CREATOR = new Creator<SuccessfulBean>() {
                @Override
                public SuccessfulBean createFromParcel(Parcel source) {
                    return new SuccessfulBean(source);
                }

                @Override
                public SuccessfulBean[] newArray(int size) {
                    return new SuccessfulBean[size];
                }
            };
        }
    }


}
